package com.lsf.modules.system.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lsf.modules.system.entity.Follow;
import com.lsf.modules.system.entity.Reply;
import com.lsf.modules.system.mapper.FollowMapper;
import com.lsf.modules.system.service.FollowService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author Alexander
 */
@Service
public class FollowServiceImpl extends ServiceImpl<FollowMapper, Follow> implements FollowService {

    @Resource
    private FollowMapper followMapper;

    @Override
    public IPage<Reply> selectArticlesByFollowerId(Page page, String followerId) {
        return followMapper.selectArticlesByFollowerId(page, followerId);
    }

}
